<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<link href="smarty2.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="../js/jquery1.3.2.js"></script>
<script type="text/javascript" src="smarty2.js"></script>
<title>报告记录</title>
</head>
<body>
<div>
<h3>当前账户：{$username}</h3><a href="logout.php">注销</a></div>
<br/>
<h1>报告记录</h1>
<table id="Table" border="1" align="center" cellpadding="10" cellspacing="2" bordercolor="#ffaaoo">
<caption style="font-size:15px">当前记录数：<label id="tableRowCount">{$db_count}</label>      <input type="button" value="Add" onclick="addFun()" /> </caption>
{foreach $db_coltitle as $col}
    <th>{$col}</th>
{/foreach}
<th>操作</th>
{foreach $db_rows as $dbrow}
    <tr>
        <td>{$dbrow["id"]}</td>
		<td>{$dbrow["bg_people_name"]}</td>
		<td>{$dbrow["title"]}</td>
		<td>{$dbrow["start_date"]}</td>
		<td>{$dbrow["statu"]}</td>
		<td>{$dbrow["node"]}</td>
	<td>
		<input type="button" value="进入" onclick='gotoSelectPage("{$dbrow["id"]}");' />
	</td> 
    </tr>
{/foreach}
</table>

<div id="editdiv" style="display:none;color:red;" align="center">
 <form>
 id:<input type=text id="editdiv_id" readonly="true" />
 name:<input type=text id="editdiv_name" />
 <input type=button name="Updata" value="Updata" onclick="updataFun()" />
</form>
</div>
<div id="adddiv" style="display:none;color:green;" align="center">
 <form>
 报告标题:<input type=text id="title" />
 备注:<input type=text id="note" />
 <input type=button name="Insert" value="Insert" onclick='insertBg("{$username}")' / >
 
</form>
</div>

<div id="error"></div>
</body>
</html>